

package top.continew.admin.common.constant;

/**
 * 错误码常量
 */
public class ErrorCode {
    /** 通用错误码 */
    public static final String BAD_REQUEST = "400";
    public static final String UNAUTHORIZED = "401";
    public static final String FORBIDDEN = "403";
    public static final String NOT_FOUND = "404";
    public static final String INTERNAL_ERROR = "500";

    /** 业务错误码 */
    public static final String INVALID_PARAM = "1001";
    public static final String RESOURCE_NOT_FOUND = "1002";
    public static final String OPERATION_FAILED = "1003";

    /** 用户相关错误码 */
    public static final String USER_NOT_FOUND = "2001";
    public static final String USER_UNAUTHORIZED = "2002";

    /** 题目相关错误码 */
    public static final String QUESTION_NOT_FOUND = "3001";
    public static final String QUESTION_INVALID_TYPE = "3002";
    public static final String QUESTION_OPERATION_FAILED = "3003";
}